record value · System
ValueTuple<T1, T2, T3, T4, T5, T6, T7>
public record value ValueTuple<T1, T2, T3, T4, T5, T6, T7> : IToString, IHashable<(T1, T2, T3, T4, T5, T6, T7)>
7 items in a value: Item1…Item7, which can be changed.
- Kind
- record value
- Namespace
- System
- Assembly
- System.Core
- Access
- public, record
- Source file
Tuples.ant
Type parameters
| Name | Constraints |
|---|---|
T1 | any type |
T2 | any type |
T3 | any type |
T4 | any type |
T5 | any type |
T6 | any type |
T7 | any type |
Inheritance
- Interfaces
-
IToStringIHashable<TSelf>
Constructors
new(T1 Item1, T2 Item2, T3 Item3, T4 Item4, T5 Item5, T6 Item6, T7 Item7)
#
Methods
Fields
Source
ValueTuple<T1, T2, T3, T4, T5, T6, T7> as Antril, decompiled from its Larva HIR.
// System.ValueTuple — System.Core (decompiled from Larva HIR)
into namespace System
{
/// 7 items in a value: Item1…Item7, which can be changed.
public record value ValueTuple<T1, T2, T3, T4, T5, T6, T7> : IToString, IHashable<(T1, T2, T3, T4, T5, T6, T7)>
{
public:
T1 Item1;
T2 Item2;
T3 Item3;
T4 Item4;
T5 Item5;
T6 Item6;
T7 Item7;
new(T1 Item1, T2 Item2, T3 Item3, T4 Item4, T5 Item5, T6 Item6, T7 Item7)
{
this.Item1 = Item1;
this.Item2 = Item2;
this.Item3 = Item3;
this.Item4 = Item4;
this.Item5 = Item5;
this.Item6 = Item6;
this.Item7 = Item7;
}
/// The same items in a Tuple (a class).
ToTuple() : Tuple<T1, T2, T3, T4, T5, T6, T7> => new Tuple<T1, T2, T3, T4, T5, T6, T7>(Item1, Item2, Item3, Item4, Item5, Item6, Item7);
}
}